/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plotter2d;

import java.awt.Color;

/**
 *
 * @author Bezdelnick
 */
public class GraphEntity {

    private String name;
    private float minX;
    private float maxX;
    private float step;
    private String formula;
    private ColorEntity colorEntity;
    private Boolean active = true;

    /**
     *
     * @param index
     * @param minX
     * @param maxX
     * @param step
     * @param formula
     * @param colorEntity
     * @param active
     */
    public GraphEntity(String name, float minX, float maxX, float step, String formula, ColorEntity colorEntity) {
        this.name = name;
        this.minX = minX;
        this.maxX = maxX;
        this.step = step;
        this.formula = formula;
        this.colorEntity = colorEntity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getMinX() {
        return minX;
    }

    public void setMinX(float minX) {
        this.minX = minX;
    }

    public float getMaxX() {
        return maxX;
    }

    public void setMaxX(float maxX) {
        this.maxX = maxX;
    }

    public float getStep() {
        return step;
    }

    public void setStep(float step) {
        this.step = step;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public ColorEntity getColorEntity() {
        return colorEntity;
    }

    public void setColorEntity(ColorEntity color) {
        this.colorEntity = color;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return (getName()+ " [" + getFormula() + "]");
    }
}